function onAddItem(moveitem, tileitem, pos)
	if moveitem.itemid ~= 5901 then
		return true
	end

	positionToGo = nil
	if tileitem.actionid == 2100 then
		positionToGo = {x = 298, y = 116, z = 10}
	else
		positionToGo = {x = 102, y = 102, z = 7}
	end
	doRemoveItem(moveitem.uid)
	doRemoveItem(tileitem.uid)
	doSendMagicEffect(pos, CONST_ME_HITBYFIRE)
	doCreateTeleport(1387, positionToGo, pos)
	return true
end